package org.shadow.core.key;

import org.shadow.core.key.exception.InvalidSequenceException;

/**
 * 主键生成器
 * @author zhouw
 * @version 0.1
 * @since 2016.12.02
 */
public interface KeyGenerator {
	
	/**
	 * generate
	 * @return 唯一主键
	 */
	public String generate() throws InvalidSequenceException;
	
}
